﻿using Remember.Model;
using Remember.Persistence;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Remember.Web.Controllers
{
    public class HomeController : Controller
    {
        readonly IRepository<TaskUser> _taskUser;

        public HomeController(IRepository<TaskUser> taskUser)
        {
            if (taskUser == null)
                throw new ArgumentNullException("taskUser");

            _taskUser = taskUser;
        }

        public ActionResult Index()
        {
            return View(_taskUser.FindBySpecification());
        }
    }
}